def make_chocolate(small, big, goal):
  if goal == small + big * 5:
    return small
  if goal - big * 5 > small:
    return - 1
  if goal - (goal // 5) * 5 <= small:
    return goal - (goal // 5) * 5
  else:
    return -1
  if goal - big * 5 < small:
    return small - (goal - big * 5)